package com.blacktry.service;

import com.blacktry.entity.blog.Labels;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blacktry.entity.model.vueVO.Option;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author blackTry
 * @since 2022-02-07
 */
public interface LabelsService extends IService<Labels> {


    //插入标签
    public void insertLable(Labels labels);

    //根据标签名称查询标签ID;
    public  Integer selectId(String labelName);

    List<Option> selectLabelsOptions();

    List<Option> selectOneLabelsOptions(String id);

    String[] backOneLabelsOptions(String id);

    //根据id删除标签
    public int deleteLableById(Integer labelId);
}
